package com.lst.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lst.tools.mybatis.entity.DeleteBaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 订单商品-产品表
 *
 * @author Frank
 * @date 2020-02-05 23:28:26
 * @version: V1.0
 */
@Data
@NoArgsConstructor
@TableName(value = "lst_order_item_product")
@ApiModel(value = "订单商品-产品表")
public class OrderItemProduct extends DeleteBaseModel {

    public static final String ORDER_ID = "order_id";
    public static final String PRODUCT_ID = "product_id";
    public static final String TITLE = "title";
    public static final String DETAILS = "details";
    public static final String MAX_QUOTA = "max_quota";
    public static final String YEARS = "years";
    public static final String LOAN_RATE = "loan_rate";
    public static final String TAX_LEVEL = "tax_level";
    public static final String LOAN_BANK_ID = "loan_bank_id";

    @ApiModelProperty(name = "orderId", value = "推销员用户id", dataType = "Long")
    @TableField(value = ORDER_ID)
    private Long orderId;

    @ApiModelProperty(name = "productId", value = "产品id", dataType = "Long")
    @TableField(value = PRODUCT_ID)
    private Long productId;

    @ApiModelProperty(name = "title", value = "标题,产品名称", dataType = "String")
    @TableField(value = TITLE)
    private String title;

    @ApiModelProperty(name = "details", value = " 产品内容", dataType = "String")
    @TableField(value = DETAILS)
    private String details;

    @ApiModelProperty(name = "maxQuota", value = "最大额度，单位万元", dataType = "Long")
    @TableField(value = MAX_QUOTA)
    private Long maxQuota;

    @ApiModelProperty(name = "years", value = "贷款年限", dataType = "Integer")
    @TableField(value = YEARS)
    private Integer years;

    @ApiModelProperty(name = "loanRate", value = "贷款利率，单位%", dataType = "Double")
    @TableField(value = LOAN_RATE)
    private Double loanRate;

    @ApiModelProperty(name = "taxLevel", value = "税务等级，多个的话逗号隔开", dataType = "String")
    @TableField(value = TAX_LEVEL)
    private String taxLevel;

    @ApiModelProperty(name = "loanBankId", value = "贷款银行id", dataType = "Long")
    @TableField(value = LOAN_BANK_ID)
    private Long loanBankId;


}